package services

import (
	"go/dao"
	"go/models"
)

func Addstudent(student models.Stumes) error {
	err := dao.Addstudent(student)
	return err
}

func Delstudent(sno int) error {
	err := dao.Delstudent(sno)
	return err
}

func Updatestudent(student models.Stumes) error {
	err := dao.Updatestudent(student)
	return err
}

func Getstudent(studentParam map[string]interface{}) ([]models.Stumes, int64, error) {
	studentData, total, err := dao.Getstudent(studentParam)
	return studentData, total, err
}
